package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.DriverInfo;
import com.yyp.dao.DriverInfoDao;
import com.yyp.service.DriverInfoService;
import com.yyp.service.ManagerService;

@Service
public class DriverInfoServiceImpl implements DriverInfoService {
	@Resource
	DriverInfoDao driverInfoImpl;

	//
	// public void del(String names) {

	// DriverInfoImpl.delete(names);
	// }

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DriverInfoService#del(int)
	 */
	public void del(int id) {

		driverInfoImpl.delete(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DriverInfoService#find(java.lang.Integer)
	 */
	public DriverInfo find(Integer id) {
		return driverInfoImpl.find(id);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DriverInfoService#find(java.lang.String)
	 */
	public DriverInfo find(String name) {
		return driverInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DriverInfoService#findAll()
	 */
	public List<DriverInfo> findAll() {
		return driverInfoImpl.findAll();
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DriverInfoService#save(com.yyp.bean.DriverInfo)
	 */
	public void save(DriverInfo entity) {
		driverInfoImpl.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DriverInfoService#updata(com.yyp.bean.DriverInfo)
	 */
	public void updata(DriverInfo entity) {
		driverInfoImpl.updata(entity);
	}

}
